package cn.fay.chapter10;

import cn.fay.chapter10.Test20.Inner;

public interface Test20 {
	void say();
	class Inner implements Test20{
		@Override
		public void say() {
			System.out.println("say hello!");
		}
		public static Test20 getInner(){
			return new Inner();
		}
	}
}
class DemoB{
	public static void main(String[] args) {
		Inner inner = (Inner) Test20.Inner.getInner();
		inner.say();
	}
}